<template>
    <div class="main-body">
        <div class="video">
            <video src="../../../../../public/static/demo.mp4" muted autoplay loop></video>
        </div>
        <div  class="header">
            <span @click="jumpOverview" style="margin-right:23.5vw; cursor:pointer  ">
                平台总览
            </span>
            <span  style="margin-left: 23.5vw;cursor:pointer;color: white">
                平台架构
            </span>
        </div>
    </div>

</template>

<script>
    export default {
        data(){
          return{
              boolOpen:true,
          }
        },
        name: "Mp4Demo",
        mounted() {
            this.boolOpen = JSON.parse(window.localStorage.getItem("user_token")).value !==`fa46ce66-be29-42b7-baf2-e682de97b5d7`;
        },
        methods:{
            jumpOverview(){
                //转发到平台总览
                this.$router.push({path: '/bigData', query:{}});
            },
            jumpManagementSystem(){
                //转发到管理员登录页面
                this.$router.push({path: '/welcome', query:{}});
            },
        }
    }
</script>

<style scoped>

    .main-body{
        background-size: 100% 100%;
        position: relative;
    }
    .video{
        width:100vw;
        height: 100vh;
        position:absolute;
        top:0;
        left: 0;
        z-index: -1;
    }
    .video video{
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
    .header{
        background-size: 100% 100%;
        background-color:rgba(0,0,0,0);
        width: 100vw;
        height: 9.26vh;
        display: flex;
        justify-content: center;
    }
    .header > span{
        font-size:1.3vw;
        color: #A5C9FF;
        font-family: PingFangSC-Semibold;
        line-height: 8vh;
    }
    .managementSystem{
        position: absolute;
        right: 12vw;
        top: 0;
        font-size:1.3vw;
        color: #A5C9FF;
        font-family: PingFangSC-Semibold;
        line-height: 8vh;
        cursor:pointer
    }
</style>